package com.example.flowabledemo.demos.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Description: 关联表单表——字段详情表
 * @Author: LuanKay
 * @Date: 2025/2/13
 */
@Data
@TableName("process_form_detail")
public class ProcessFormDetail {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 字段名
     */
    @TableField("field_name")
    private String fieldName;

    /**
     * 字段类型(1字符串 2数字 3布尔)
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 是否必填 1是0否
     */
    @TableField(value = "is_required")
    private Integer isRequired;

    /**
     * 是否已删除 1是0否
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "form_id")
    private Long formId;

}
